package com.ruoyi.control.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; //添加
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.control.mapper.JhjsSixHistoryMapper;
import com.ruoyi.control.domain.JhjsSixHistory;
import com.ruoyi.control.service.IJhjsSixHistoryService;

/**
 * 406机巷局扇历史数据Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-11-08
 */
@Service
public class JhjsSixHistoryServiceImpl extends ServiceImpl<JhjsSixHistoryMapper, JhjsSixHistory> implements IJhjsSixHistoryService //修改
{
    @Autowired
    private JhjsSixHistoryMapper jhjsSixHistoryMapper;

    /**
     * 查询406机巷局扇历史数据
     * 
     * @param id 406机巷局扇历史数据主键
     * @return 406机巷局扇历史数据
     */
    @Override
    public JhjsSixHistory selectJhjsSixHistoryById(String id)
    {
        return jhjsSixHistoryMapper.selectJhjsSixHistoryById(id);
    }

    /**
     * 查询406机巷局扇历史数据列表
     * 
     * @param jhjsSixHistory 406机巷局扇历史数据
     * @return 406机巷局扇历史数据
     */
    @Override
    public List<JhjsSixHistory> selectJhjsSixHistoryList(JhjsSixHistory jhjsSixHistory)
    {
        return jhjsSixHistoryMapper.selectJhjsSixHistoryList(jhjsSixHistory);
    }

    /**
     * 新增406机巷局扇历史数据
     * 
     * @param jhjsSixHistory 406机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int insertJhjsSixHistory(JhjsSixHistory jhjsSixHistory)
    {
        return jhjsSixHistoryMapper.insertJhjsSixHistory(jhjsSixHistory);
    }

    /**
     * 修改406机巷局扇历史数据
     * 
     * @param jhjsSixHistory 406机巷局扇历史数据
     * @return 结果
     */
    @Override
    public int updateJhjsSixHistory(JhjsSixHistory jhjsSixHistory)
    {
        jhjsSixHistory.setUpdateTime(DateUtils.getNowDate());
        return jhjsSixHistoryMapper.updateJhjsSixHistory(jhjsSixHistory);
    }

    /**
     * 批量删除406机巷局扇历史数据
     * 
     * @param ids 需要删除的406机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsSixHistoryByIds(String[] ids)
    {
        return jhjsSixHistoryMapper.deleteJhjsSixHistoryByIds(ids);
    }

    /**
     * 删除406机巷局扇历史数据信息
     * 
     * @param id 406机巷局扇历史数据主键
     * @return 结果
     */
    @Override
    public int deleteJhjsSixHistoryById(String id)
    {
        return jhjsSixHistoryMapper.deleteJhjsSixHistoryById(id);
    }
}
